package com.sann.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.sql.DataSource;

@Configuration
/**扫描业务类标注的注解*/
@ComponentScan("com.sann.demo")
/**导入其它配置类,明确告知是配置类，配置类上无需再用注解@Configuration标注*/
@Import({JdbcConfig.class, TransactionConfig.class})
/**开启注解事务支持*/
@EnableTransactionManagement
public class SpringConfig {


}
